package cn.o.app.json;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER })
public @interface JSONField {

	public static enum Type {
		STRING, INT, LONG, DOUBLE, BOOL
	}

	public Type type() default Type.STRING;

	public String name() default "";

	public String format() default "";

}
